/*
 * @Author: deliteam 462085920@qq.com
 * @Date: 2023-11-21 17:10:45
 * @Description:
 */
import type { UserShortcuts } from "unocss";
import {
  defineConfig,
  presetAttributify,
  presetIcons,
  presetTypography,
  presetUno,
  presetWebFonts,
  transformerDirectives,
  transformerVariantGroup,
} from "unocss";
import { SHORTCUTS, THEME } from "./constants/unocss";

export default defineConfig({
  shortcuts: SHORTCUTS as UserShortcuts<any>,
  presets: [
    presetUno(),
    presetAttributify(),
    presetIcons({
      scale: 1.2,
    }),
    presetTypography(),
    presetWebFonts({
      fonts: {
        sans: "DM Sans",
        serif: "DM Serif Display",
        mono: "DM Mono",
      },
    }),
  ],
  transformers: [transformerDirectives(), transformerVariantGroup()],
  theme: {
    colors: {
      primary: THEME.PRIMARY,
    },
    breakpoints: THEME.BREAKPOINTS,
  },
});
